.class public Lcom/teewoo/app/bus/util/PullXmlReader;
.super Ljava/lang/Object;
.source "PullXmlReader.java"


# direct methods
.method public constructor <init>()V
    .locals 0

    .prologue
    .line 19
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method

.method public static getAllSolutions(Ljava/io/InputStream;Ljava/lang/String;)Ljava/util/List;
    .locals 11
    .parameter "inputStream"
    .parameter "encode"
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/io/InputStream;",
            "Ljava/lang/String;",
            ")",
            "Ljava/util/List",
            "<",
            "Lcom/teewoo/app/bus/model/Solution;",
            ">;"
        }
    .end annotation

    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/lang/Exception;
        }
    .end annotation

    .prologue
    .line 452
    const/4 v0, 0x0

    .line 453
    .local v0, allSolutions:Ljava/util/List;,"Ljava/util/List<Lcom/teewoo/app/bus/model/Solution;>;"
    const/4 v8, 0x0

    .line 454
    .local v8, solution:Lcom/teewoo/app/bus/model/Solution;
    const/4 v1, 0x0

    .line 455
    .local v1, fromStation:Lcom/teewoo/app/bus/model/Station;
    const/4 v9, 0x0

    .line 457
    .local v9, toStation:Lcom/teewoo/app/bus/model/Station;
    const/4 v7, 0x0

    .line 458
    .local v7, sectList:Ljava/util/List;,"Ljava/util/List<Lcom/teewoo/app/bus/model/Section;>;"
    const/4 v6, 0x0

    .line 459
    .local v6, sect:Lcom/teewoo/app/bus/model/Section;
    const/4 v2, 0x0

    .line 460
    .local v2, line:Lcom/teewoo/app/bus/model/Line;
    const/4 v4, 0x0

    .line 461
    .local v4, onStation:Lcom/teewoo/app/bus/model/Station;
    const/4 v3, 0x0

    .line 463
    .local v3, offStation:Lcom/teewoo/app/bus/model/Station;
    invoke-static {}, Landroid/util/Xml;->newPullParser()Lorg/xmlpull/v1/XmlPullParser;

    move-result-object v5

    .line 464
    .local v5, parser:Lorg/xmlpull/v1/XmlPullParser;
    invoke-interface {v5, p0, p1}, Lorg/xmlpull/v1/XmlPullParser;->setInput(Ljava/io/InputStream;Ljava/lang/String;)V

    .line 465
    invoke-interface {v5}, Lorg/xmlpull/v1/XmlPullParser;->getEventType()I

    move-result p0

    .local p0, event:I
    move p1, p0

    .end local p0           #event:I
    .local p1, event:I
    move-object p0, v0

    .end local v0           #allSolutions:Ljava/util/List;,"Ljava/util/List<Lcom/teewoo/app/bus/model/Solution;>;"
    .local p0, allSolutions:Ljava/util/List;,"Ljava/util/List<Lcom/teewoo/app/bus/model/Solution;>;"
    move-object v0, v1

    .end local v1           #fromStation:Lcom/teewoo/app/bus/model/Station;
    .local v0, fromStation:Lcom/teewoo/app/bus/model/Station;
    move-object v1, v2

    .end local v2           #line:Lcom/teewoo/app/bus/model/Line;
    .local v1, line:Lcom/teewoo/app/bus/model/Line;
    move-object v2, v3

    .end local v3           #offStation:Lcom/teewoo/app/bus/model/Station;
    .local v2, offStation:Lcom/teewoo/app/bus/model/Station;
    move-object v3, v4

    .end local v4           #onStation:Lcom/teewoo/app/bus/model/Station;
    .local v3, onStation:Lcom/teewoo/app/bus/model/Station;
    move-object v4, v6

    .end local v6           #sect:Lcom/teewoo/app/bus/model/Section;
    .local v4, sect:Lcom/teewoo/app/bus/model/Section;
    move-object v6, v7

    .end local v7           #sectList:Ljava/util/List;,"Ljava/util/List<Lcom/teewoo/app/bus/model/Section;>;"
    .local v6, sectList:Ljava/util/List;,"Ljava/util/List<Lcom/teewoo/app/bus/model/Section;>;"
    move-object v7, v8

    .end local v8           #solution:Lcom/teewoo/app/bus/model/Solution;
    .local v7, solution:Lcom/teewoo/app/bus/model/Solution;
    move-object v8, v9

    .line 467
    .end local v9           #toStation:Lcom/teewoo/app/bus/model/Station;
    .local v8, toStation:Lcom/teewoo/app/bus/model/Station;
    :goto_0
    const/4 v9, 0x1

    if-ne p1, v9, :cond_0

    .line 608
    return-object p0

    .line 468
    :cond_0
    packed-switch p1, :pswitch_data_0

    .line 606
    .end local p1           #event:I
    :cond_1
    :goto_1
    :pswitch_0
    invoke-interface {v5}, Lorg/xmlpull/v1/XmlPullParser;->next()I

    move-result p1

    .restart local p1       #event:I
    goto :goto_0

    .line 470
    :pswitch_1
    new-instance p0, Ljava/util/ArrayList;

    .end local p0           #allSolutions:Ljava/util/List;,"Ljava/util/List<Lcom/teewoo/app/bus/model/Solution;>;"
    invoke-direct {p0}, Ljava/util/ArrayList;-><init>()V

    .line 471
    .restart local p0       #allSolutions:Ljava/util/List;,"Ljava/util/List<Lcom/teewoo/app/bus/model/Solution;>;"
    goto :goto_1

    .line 473
    :pswitch_2
    const-string p1, "solution"

    .end local p1           #event:I
    invoke-interface {v5}, Lorg/xmlpull/v1/XmlPullParser;->getName()Ljava/lang/String;

    move-result-object v9

    invoke-virtual {p1, v9}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p1

    if-eqz p1, :cond_2

    .line 474
    new-instance v6, Lcom/teewoo/app/bus/model/Solution;

    .end local v6           #sectList:Ljava/util/List;,"Ljava/util/List<Lcom/teewoo/app/bus/model/Section;>;"
    invoke-direct {v6}, Lcom/teewoo/app/bus/model/Solution;-><init>()V

    .line 475
    .end local v7           #solution:Lcom/teewoo/app/bus/model/Solution;
    .local v6, solution:Lcom/teewoo/app/bus/model/Solution;
    new-instance p1, Ljava/util/ArrayList;

    invoke-direct {p1}, Ljava/util/ArrayList;-><init>()V

    .local p1, sectList:Ljava/util/List;,"Ljava/util/List<Lcom/teewoo/app/bus/model/Section;>;"
    move-object v7, v6

    .end local v6           #solution:Lcom/teewoo/app/bus/model/Solution;
    .restart local v7       #solution:Lcom/teewoo/app/bus/model/Solution;
    move-object v6, p1

    .end local p1           #sectList:Ljava/util/List;,"Ljava/util/List<Lcom/teewoo/app/bus/model/Section;>;"
    .local v6, sectList:Ljava/util/List;,"Ljava/util/List<Lcom/teewoo/app/bus/model/Section;>;"
    goto :goto_1

    .line 476
    :cond_2
    if-eqz v7, :cond_1

    .line 477
    const-string p1, "id"

    invoke-interface {v5}, Lorg/xmlpull/v1/XmlPullParser;->getName()Ljava/lang/String;

    move-result-object v9

    invoke-virtual {p1, v9}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p1

    if-eqz p1, :cond_8

    .line 478
    if-nez v0, :cond_3

    .line 479
    invoke-interface {v5}, Lorg/xmlpull/v1/XmlPullParser;->nextText()Ljava/lang/String;

    move-result-object p1

    invoke-static {p1}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I

    move-result p1

    invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object p1

    invoke-virtual {v7, p1}, Lcom/teewoo/app/bus/model/Solution;->setId(Ljava/lang/Integer;)V

    goto :goto_1

    .line 481
    :cond_3
    if-nez v8, :cond_4

    .line 483
    invoke-interface {v5}, Lorg/xmlpull/v1/XmlPullParser;->nextText()Ljava/lang/String;

    move-result-object p1

    .line 482
    invoke-static {p1}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I

    move-result p1

    invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object p1

    invoke-virtual {v0, p1}, Lcom/teewoo/app/bus/model/Station;->setId(Ljava/lang/Integer;)V

    goto :goto_1

    .line 485
    :cond_4
    if-nez v1, :cond_5

    .line 487
    invoke-interface {v5}, Lorg/xmlpull/v1/XmlPullParser;->nextText()Ljava/lang/String;

    move-result-object p1

    .line 486
    invoke-static {p1}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I

    move-result p1

    invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object p1

    invoke-virtual {v8, p1}, Lcom/teewoo/app/bus/model/Station;->setId(Ljava/lang/Integer;)V

    goto :goto_1

    .line 489
    :cond_5
    if-nez v3, :cond_6

    .line 491
    invoke-interface {v5}, Lorg/xmlpull/v1/XmlPullParser;->nextText()Ljava/lang/String;

    move-result-object p1

    .line 490
    invoke-static {p1}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I

    move-result p1

    invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object p1

    invoke-virtual {v1, p1}, Lcom/teewoo/app/bus/model/Line;->setId(Ljava/lang/Integer;)V

    goto :goto_1

    .line 493
    :cond_6
    if-nez v2, :cond_7

    .line 497
    invoke-interface {v5}, Lorg/xmlpull/v1/XmlPullParser;->nextText()Ljava/lang/String;

    move-result-object p1

    .line 496
    invoke-static {p1}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I

    move-result p1

    invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object p1

    .line 495
    invoke-virtual {v3, p1}, Lcom/teewoo/app/bus/model/Station;->setId(Ljava/lang/Integer;)V

    goto/16 :goto_1

    .line 502
    :cond_7
    invoke-interface {v5}, Lorg/xmlpull/v1/XmlPullParser;->nextText()Ljava/lang/String;

    move-result-object p1

    .line 501
    invoke-static {p1}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I

    move-result p1

    invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object p1

    .line 500
    invoke-virtual {v2, p1}, Lcom/teewoo/app/bus/model/Station;->setId(Ljava/lang/Integer;)V

    goto/16 :goto_1

    .line 507
    :cond_8
    const-string p1, "from_station"

    invoke-interface {v5}, Lorg/xmlpull/v1/XmlPullParser;->getName()Ljava/lang/String;

    move-result-object v9

    invoke-virtual {p1, v9}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p1

    if-eqz p1, :cond_9

    .line 508
    new-instance p1, Lcom/teewoo/app/bus/model/Station;

    invoke-direct {p1}, Lcom/teewoo/app/bus/model/Station;-><init>()V

    .end local v0           #fromStation:Lcom/teewoo/app/bus/model/Station;
    .local p1, fromStation:Lcom/teewoo/app/bus/model/Station;
    move-object v0, p1

    .end local p1           #fromStation:Lcom/teewoo/app/bus/model/Station;
    .restart local v0       #fromStation:Lcom/teewoo/app/bus/model/Station;
    goto/16 :goto_1

    .line 509
    :cond_9
    const-string p1, "category"

    invoke-interface {v5}, Lorg/xmlpull/v1/XmlPullParser;->getName()Ljava/lang/String;

    move-result-object v9

    invoke-virtual {p1, v9}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p1

    if-eqz p1, :cond_e

    .line 510
    if-nez v8, :cond_a

    .line 511
    invoke-interface {v5}, Lorg/xmlpull/v1/XmlPullParser;->nextText()Ljava/lang/String;

    move-result-object p1

    invoke-virtual {v0, p1}, Lcom/teewoo/app/bus/model/Station;->setCategory(Ljava/lang/String;)V

    goto/16 :goto_1

    .line 513
    :cond_a
    if-nez v1, :cond_b

    .line 514
    invoke-interface {v5}, Lorg/xmlpull/v1/XmlPullParser;->nextText()Ljava/lang/String;

    move-result-object p1

    invoke-virtual {v8, p1}, Lcom/teewoo/app/bus/model/Station;->setCategory(Ljava/lang/String;)V

    goto/16 :goto_1

    .line 516
    :cond_b
    if-nez v3, :cond_c

    .line 517
    invoke-interface {v5}, Lorg/xmlpull/v1/XmlPullParser;->nextText()Ljava/lang/String;

    move-result-object p1

    invoke-virtual {v1, p1}, Lcom/teewoo/app/bus/model/Line;->setCategory(Ljava/lang/String;)V

    goto/16 :goto_1

    .line 519
    :cond_c
    if-nez v2, :cond_d

    .line 521
    invoke-interface {v5}, Lorg/xmlpull/v1/XmlPullParser;->nextText()Ljava/lang/String;

    move-result-object p1

    invoke-virtual {v3, p1}, Lcom/teewoo/app/bus/model/Station;->setCategory(Ljava/lang/String;)V

    goto/16 :goto_1

    .line 524
    :cond_d
    invoke-interface {v5}, Lorg/xmlpull/v1/XmlPullParser;->nextText()Ljava/lang/String;

    move-result-object p1

    .line 523
    invoke-virtual {v2, p1}, Lcom/teewoo/app/bus/model/Station;->setCategory(Ljava/lang/String;)V

    goto/16 :goto_1

    .line 529
    :cond_e
    const-string p1, "name"

    invoke-interface {v5}, Lorg/xmlpull/v1/XmlPullParser;->getName()Ljava/lang/String;

    move-result-object v9

    invoke-virtual {p1, v9}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p1

    if-eqz p1, :cond_13

    .line 530
    if-nez v8, :cond_f

    .line 531
    invoke-interface {v5}, Lorg/xmlpull/v1/XmlPullParser;->nextText()Ljava/lang/String;

    move-result-object p1

    invoke-virtual {v0, p1}, Lcom/teewoo/app/bus/model/Station;->setName(Ljava/lang/String;)V

    goto/16 :goto_1

    .line 533
    :cond_f
    if-nez v1, :cond_10

    .line 534
    invoke-interface {v5}, Lorg/xmlpull/v1/XmlPullParser;->nextText()Ljava/lang/String;

    move-result-object p1

    invoke-virtual {v8, p1}, Lcom/teewoo/app/bus/model/Station;->setName(Ljava/lang/String;)V

    goto/16 :goto_1

    .line 536
    :cond_10
    if-nez v3, :cond_11

    .line 537
    invoke-interface {v5}, Lorg/xmlpull/v1/XmlPullParser;->nextText()Ljava/lang/String;

    move-result-object p1

    invoke-virtual {v1, p1}, Lcom/teewoo/app/bus/model/Line;->setName(Ljava/lang/String;)V

    goto/16 :goto_1

    .line 539
    :cond_11
    if-nez v2, :cond_12

    .line 541
    invoke-interface {v5}, Lorg/xmlpull/v1/XmlPullParser;->nextText()Ljava/lang/String;

    move-result-object p1

    invoke-virtual {v3, p1}, Lcom/teewoo/app/bus/model/Station;->setName(Ljava/lang/String;)V

    goto/16 :goto_1

    .line 544
    :cond_12
    invoke-interface {v5}, Lorg/xmlpull/v1/XmlPullParser;->nextText()Ljava/lang/String;

    move-result-object p1

    .line 543
    invoke-virtual {v2, p1}, Lcom/teewoo/app/bus/model/Station;->setName(Ljava/lang/String;)V

    goto/16 :goto_1

    .line 548
    :cond_13
    const-string p1, "lat"

    invoke-interface {v5}, Lorg/xmlpull/v1/XmlPullParser;->getName()Ljava/lang/String;

    move-result-object v9

    invoke-virtual {p1, v9}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p1

    if-eqz p1, :cond_15

    .line 549
    if-nez v8, :cond_14

    .line 550
    invoke-interface {v5}, Lorg/xmlpull/v1/XmlPullParser;->nextText()Ljava/lang/String;

    move-result-object p1

    invoke-static {p1}, Ljava/lang/Double;->valueOf(Ljava/lang/String;)Ljava/lang/Double;

    move-result-object p1

    invoke-virtual {p1}, Ljava/lang/Double;->doubleValue()D

    move-result-wide v9

    invoke-virtual {v0, v9, v10}, Lcom/teewoo/app/bus/model/Station;->setLat(D)V

    goto/16 :goto_1

    .line 552
    :cond_14
    invoke-interface {v5}, Lorg/xmlpull/v1/XmlPullParser;->nextText()Ljava/lang/String;

    move-result-object p1

    invoke-static {p1}, Ljava/lang/Double;->valueOf(Ljava/lang/String;)Ljava/lang/Double;

    move-result-object p1

    invoke-virtual {p1}, Ljava/lang/Double;->doubleValue()D

    move-result-wide v9

    invoke-virtual {v8, v9, v10}, Lcom/teewoo/app/bus/model/Station;->setLat(D)V

    goto/16 :goto_1

    .line 553
    :cond_15
    const-string p1, "lon"

    invoke-interface {v5}, Lorg/xmlpull/v1/XmlPullParser;->getName()Ljava/lang/String;

    move-result-object v9

    invoke-virtual {p1, v9}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p1

    if-eqz p1, :cond_17

    .line 554
    if-nez v8, :cond_16

    .line 555
    invoke-interface {v5}, Lorg/xmlpull/v1/XmlPullParser;->nextText()Ljava/lang/String;

    move-result-object p1

    invoke-static {p1}, Ljava/lang/Double;->valueOf(Ljava/lang/String;)Ljava/lang/Double;

    move-result-object p1

    invoke-virtual {p1}, Ljava/lang/Double;->doubleValue()D

    move-result-wide v9

    invoke-virtual {v0, v9, v10}, Lcom/teewoo/app/bus/model/Station;->setLon(D)V

    goto/16 :goto_1

    .line 557
    :cond_16
    invoke-interface {v5}, Lorg/xmlpull/v1/XmlPullParser;->nextText()Ljava/lang/String;

    move-result-object p1

    invoke-static {p1}, Ljava/lang/Double;->valueOf(Ljava/lang/String;)Ljava/lang/Double;

    move-result-object p1

    invoke-virtual {p1}, Ljava/lang/Double;->doubleValue()D

    move-result-wide v9

    invoke-virtual {v8, v9, v10}, Lcom/teewoo/app/bus/model/Station;->setLon(D)V

    goto/16 :goto_1

    .line 559
    :cond_17
    const-string p1, "to_station"

    invoke-interface {v5}, Lorg/xmlpull/v1/XmlPullParser;->getName()Ljava/lang/String;

    move-result-object v9

    invoke-virtual {p1, v9}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p1

    if-eqz p1, :cond_18

    .line 560
    new-instance p1, Lcom/teewoo/app/bus/model/Station;

    invoke-direct {p1}, Lcom/teewoo/app/bus/model/Station;-><init>()V

    .end local v8           #toStation:Lcom/teewoo/app/bus/model/Station;
    .local p1, toStation:Lcom/teewoo/app/bus/model/Station;
    move-object v8, p1

    .end local p1           #toStation:Lcom/teewoo/app/bus/model/Station;
    .restart local v8       #toStation:Lcom/teewoo/app/bus/model/Station;
    goto/16 :goto_1

    .line 561
    :cond_18
    const-string p1, "section"

    invoke-interface {v5}, Lorg/xmlpull/v1/XmlPullParser;->getName()Ljava/lang/String;

    move-result-object v9

    invoke-virtual {p1, v9}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p1

    if-eqz p1, :cond_19

    .line 562
    new-instance p1, Lcom/teewoo/app/bus/model/Section;

    invoke-direct {p1}, Lcom/teewoo/app/bus/model/Section;-><init>()V

    .end local v4           #sect:Lcom/teewoo/app/bus/model/Section;
    .local p1, sect:Lcom/teewoo/app/bus/model/Section;
    move-object v4, p1

    .end local p1           #sect:Lcom/teewoo/app/bus/model/Section;
    .restart local v4       #sect:Lcom/teewoo/app/bus/model/Section;
    goto/16 :goto_1

    .line 563
    :cond_19
    const-string p1, "line"

    invoke-interface {v5}, Lorg/xmlpull/v1/XmlPullParser;->getName()Ljava/lang/String;

    move-result-object v9

    invoke-virtual {p1, v9}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p1

    if-eqz p1, :cond_1a

    .line 564
    new-instance p1, Lcom/teewoo/app/bus/model/Line;

    invoke-direct {p1}, Lcom/teewoo/app/bus/model/Line;-><init>()V

    .end local v1           #line:Lcom/teewoo/app/bus/model/Line;
    .local p1, line:Lcom/teewoo/app/bus/model/Line;
    move-object v1, p1

    .end local p1           #line:Lcom/teewoo/app/bus/model/Line;
    .restart local v1       #line:Lcom/teewoo/app/bus/model/Line;
    goto/16 :goto_1

    .line 565
    :cond_1a
    const-string p1, "from"

    invoke-interface {v5}, Lorg/xmlpull/v1/XmlPullParser;->getName()Ljava/lang/String;

    move-result-object v9

    invoke-virtual {p1, v9}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p1

    if-eqz p1, :cond_1b

    .line 566
    new-instance p1, Lcom/teewoo/app/bus/model/Station;

    invoke-direct {p1}, Lcom/teewoo/app/bus/model/Station;-><init>()V

    .line 567
    .local p1, from:Lcom/teewoo/app/bus/model/Station;
    invoke-interface {v5}, Lorg/xmlpull/v1/XmlPullParser;->nextText()Ljava/lang/String;

    move-result-object v9

    invoke-virtual {p1, v9}, Lcom/teewoo/app/bus/model/Station;->setName(Ljava/lang/String;)V

    .line 568
    invoke-virtual {v1, p1}, Lcom/teewoo/app/bus/model/Line;->setFrom_station(Lcom/teewoo/app/bus/model/Station;)V

    goto/16 :goto_1

    .line 569
    .end local p1           #from:Lcom/teewoo/app/bus/model/Station;
    :cond_1b
    const-string p1, "to"

    invoke-interface {v5}, Lorg/xmlpull/v1/XmlPullParser;->getName()Ljava/lang/String;

    move-result-object v9

    invoke-virtual {p1, v9}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p1

    if-eqz p1, :cond_1c

    .line 570
    new-instance p1, Lcom/teewoo/app/bus/model/Station;

    invoke-direct {p1}, Lcom/teewoo/app/bus/model/Station;-><init>()V

    .line 571
    .local p1, to:Lcom/teewoo/app/bus/model/Station;
    invoke-interface {v5}, Lorg/xmlpull/v1/XmlPullParser;->nextText()Ljava/lang/String;

    move-result-object v9

    invoke-virtual {p1, v9}, Lcom/teewoo/app/bus/model/Station;->setName(Ljava/lang/String;)V

    .line 572
    invoke-virtual {v1, p1}, Lcom/teewoo/app/bus/model/Line;->setTo_station(Lcom/teewoo/app/bus/model/Station;)V

    goto/16 :goto_1

    .line 573
    .end local p1           #to:Lcom/teewoo/app/bus/model/Station;
    :cond_1c
    const-string p1, "station_on"

    invoke-interface {v5}, Lorg/xmlpull/v1/XmlPullParser;->getName()Ljava/lang/String;

    move-result-object v9

    invoke-virtual {p1, v9}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p1

    if-eqz p1, :cond_1d

    .line 574
    new-instance p1, Lcom/teewoo/app/bus/model/Station;

    invoke-direct {p1}, Lcom/teewoo/app/bus/model/Station;-><init>()V

    .end local v3           #onStation:Lcom/teewoo/app/bus/model/Station;
    .local p1, onStation:Lcom/teewoo/app/bus/model/Station;
    move-object v3, p1

    .end local p1           #onStation:Lcom/teewoo/app/bus/model/Station;
    .restart local v3       #onStation:Lcom/teewoo/app/bus/model/Station;
    goto/16 :goto_1

    .line 575
    :cond_1d
    const-string p1, "station_off"

    invoke-interface {v5}, Lorg/xmlpull/v1/XmlPullParser;->getName()Ljava/lang/String;

    move-result-object v9

    invoke-virtual {p1, v9}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p1

    if-eqz p1, :cond_1e

    .line 576
    new-instance p1, Lcom/teewoo/app/bus/model/Station;

    invoke-direct {p1}, Lcom/teewoo/app/bus/model/Station;-><init>()V

    .end local v2           #offStation:Lcom/teewoo/app/bus/model/Station;
    .local p1, offStation:Lcom/teewoo/app/bus/model/Station;
    move-object v2, p1

    .end local p1           #offStation:Lcom/teewoo/app/bus/model/Station;
    .restart local v2       #offStation:Lcom/teewoo/app/bus/model/Station;
    goto/16 :goto_1

    .line 577
    :cond_1e
    const-string p1, "station_no"

    invoke-interface {v5}, Lorg/xmlpull/v1/XmlPullParser;->getName()Ljava/lang/String;

    move-result-object v9

    invoke-virtual {p1, v9}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p1

    if-eqz p1, :cond_1f

    .line 578
    invoke-interface {v5}, Lorg/xmlpull/v1/XmlPullParser;->nextText()Ljava/lang/String;

    move-result-object p1

    invoke-static {p1}, Ljava/lang/Integer;->valueOf(Ljava/lang/String;)Ljava/lang/Integer;

    move-result-object p1

    invoke-virtual {v4, p1}, Lcom/teewoo/app/bus/model/Section;->setStationNo(Ljava/lang/Integer;)V

    goto/16 :goto_1

    .line 579
    :cond_1f
    const-string p1, "distance"

    invoke-interface {v5}, Lorg/xmlpull/v1/XmlPullParser;->getName()Ljava/lang/String;

    move-result-object v9

    invoke-virtual {p1, v9}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p1

    if-eqz p1, :cond_1

    .line 580
    invoke-interface {v5}, Lorg/xmlpull/v1/XmlPullParser;->nextText()Ljava/lang/String;

    move-result-object p1

    invoke-static {p1}, Ljava/lang/Double;->valueOf(Ljava/lang/String;)Ljava/lang/Double;

    move-result-object p1

    invoke-virtual {v4, p1}, Lcom/teewoo/app/bus/model/Section;->setDistance(Ljava/lang/Double;)V

    goto/16 :goto_1

    .line 585
    .local p1, event:I
    :pswitch_3
    const-string p1, "solution"

    .end local p1           #event:I
    invoke-interface {v5}, Lorg/xmlpull/v1/XmlPullParser;->getName()Ljava/lang/String;

    move-result-object v9

    invoke-virtual {p1, v9}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p1

    if-eqz p1, :cond_20

    .line 586
    invoke-virtual {v7, v0}, Lcom/teewoo/app/bus/model/Solution;->setFrom_station(Lcom/teewoo/app/bus/model/Station;)V

    .line 587
    invoke-virtual {v7, v8}, Lcom/teewoo/app/bus/model/Solution;->setTo_station(Lcom/teewoo/app/bus/model/Station;)V

    .line 588
    invoke-virtual {v7, v6}, Lcom/teewoo/app/bus/model/Solution;->setSections(Ljava/util/List;)V

    .line 589
    invoke-interface {p0, v7}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 590
    const/4 p1, 0x0

    .line 591
    .end local v0           #fromStation:Lcom/teewoo/app/bus/model/Station;
    .local p1, fromStation:Lcom/teewoo/app/bus/model/Station;
    const/4 v7, 0x0

    .line 592
    .end local v8           #toStation:Lcom/teewoo/app/bus/model/Station;
    .local v7, toStation:Lcom/teewoo/app/bus/model/Station;
    const/4 v0, 0x0

    .line 593
    .end local v6           #sectList:Ljava/util/List;,"Ljava/util/List<Lcom/teewoo/app/bus/model/Section;>;"
    .local v0, sectList:Ljava/util/List;,"Ljava/util/List<Lcom/teewoo/app/bus/model/Section;>;"
    const/4 v6, 0x0

    .local v6, solution:Lcom/teewoo/app/bus/model/Solution;
    move-object v8, v7

    .end local v7           #toStation:Lcom/teewoo/app/bus/model/Station;
    .restart local v8       #toStation:Lcom/teewoo/app/bus/model/Station;
    move-object v7, v6

    .end local v6           #solution:Lcom/teewoo/app/bus/model/Solution;
    .local v7, solution:Lcom/teewoo/app/bus/model/Solution;
    move-object v6, v0

    .end local v0           #sectList:Ljava/util/List;,"Ljava/util/List<Lcom/teewoo/app/bus/model/Section;>;"
    .local v6, sectList:Ljava/util/List;,"Ljava/util/List<Lcom/teewoo/app/bus/model/Section;>;"
    move-object v0, p1

    .end local p1           #fromStation:Lcom/teewoo/app/bus/model/Station;
    .local v0, fromStation:Lcom/teewoo/app/bus/model/Station;
    goto/16 :goto_1

    .line 594
    :cond_20
    const-string p1, "section"

    invoke-interface {v5}, Lorg/xmlpull/v1/XmlPullParser;->getName()Ljava/lang/String;

    move-result-object v9

    invoke-virtual {p1, v9}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p1

    if-eqz p1, :cond_1

    .line 595
    invoke-virtual {v4, v1}, Lcom/teewoo/app/bus/model/Section;->setLine(Lcom/teewoo/app/bus/model/Line;)V

    .line 596
    invoke-virtual {v4, v3}, Lcom/teewoo/app/bus/model/Section;->setOnStation(Lcom/teewoo/app/bus/model/Station;)V

    .line 597
    invoke-virtual {v4, v2}, Lcom/teewoo/app/bus/model/Section;->setOffStation(Lcom/teewoo/app/bus/model/Station;)V

    .line 598
    invoke-interface {v6, v4}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 599
    const/4 p1, 0x0

    .line 600
    .end local v1           #line:Lcom/teewoo/app/bus/model/Line;
    .local p1, line:Lcom/teewoo/app/bus/model/Line;
    const/4 v2, 0x0

    .line 601
    .end local v3           #onStation:Lcom/teewoo/app/bus/model/Station;
    .local v2, onStation:Lcom/teewoo/app/bus/model/Station;
    const/4 v1, 0x0

    .line 602
    .local v1, offStation:Lcom/teewoo/app/bus/model/Station;
    const/4 v3, 0x0

    .end local v4           #sect:Lcom/teewoo/app/bus/model/Section;
    .local v3, sect:Lcom/teewoo/app/bus/model/Section;
    move-object v4, v3

    .end local v3           #sect:Lcom/teewoo/app/bus/model/Section;
    .restart local v4       #sect:Lcom/teewoo/app/bus/model/Section;
    move-object v3, v2

    .end local v2           #onStation:Lcom/teewoo/app/bus/model/Station;
    .local v3, onStation:Lcom/teewoo/app/bus/model/Station;
    move-object v2, v1

    .end local v1           #offStation:Lcom/teewoo/app/bus/model/Station;
    .local v2, offStation:Lcom/teewoo/app/bus/model/Station;
    move-object v1, p1

    .end local p1           #line:Lcom/teewoo/app/bus/model/Line;
    .local v1, line:Lcom/teewoo/app/bus/model/Line;
    goto/16 :goto_1

    .line 468
    nop

    :pswitch_data_0
    .packed-switch 0x0
        :pswitch_1
        :pswitch_0
        :pswitch_2
        :pswitch_3
    .end packed-switch
.end method

.method public static getBusLocation(Ljava/io/InputStream;)Lcom/teewoo/app/bus/model/Line;
    .locals 12
    .parameter "inputStream"
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/lang/Exception;
        }
    .end annotation

    .prologue
    .line 232
    const/4 v2, 0x0

    .line 233
    .local v2, line:Lcom/teewoo/app/bus/model/Line;
    const/4 v6, 0x0

    .line 234
    .local v6, stationDeatail:Ljava/util/List;,"Ljava/util/List<Lcom/teewoo/app/bus/model/Station;>;"
    const/4 v1, 0x0

    .line 235
    .local v1, fromStation:Lcom/teewoo/app/bus/model/Station;
    const/4 v9, 0x0

    .line 236
    .local v9, toStation:Lcom/teewoo/app/bus/model/Station;
    const/4 v5, 0x0

    .line 237
    .local v5, sta:Lcom/teewoo/app/bus/model/Station;
    const/4 v4, 0x0

    .line 238
    .local v4, queryStation:Lcom/teewoo/app/bus/model/Station;
    const/4 v7, 0x0

    .line 239
    .local v7, statusList:Ljava/util/List;,"Ljava/util/List<Lcom/teewoo/app/bus/model/LineStatus;>;"
    const/4 v8, 0x0

    .line 241
    .local v8, stus:Lcom/teewoo/app/bus/model/LineStatus;
    invoke-static {}, Landroid/util/Xml;->newPullParser()Lorg/xmlpull/v1/XmlPullParser;

    move-result-object v3

    .line 242
    .local v3, parser:Lorg/xmlpull/v1/XmlPullParser;
    const-string v10, "UTF-8"

    invoke-interface {v3, p0, v10}, Lorg/xmlpull/v1/XmlPullParser;->setInput(Ljava/io/InputStream;Ljava/lang/String;)V

    .line 243
    invoke-interface {v3}, Lorg/xmlpull/v1/XmlPullParser;->getEventType()I

    move-result v0

    .line 245
    .local v0, event:I
    :goto_0
    const/4 v10, 0x1

    if-ne v0, v10, :cond_0

    .line 380
    return-object v2

    .line 246
    :cond_0
    packed-switch v0, :pswitch_data_0

    .line 378
    :cond_1
    :goto_1
    :pswitch_0
    invoke-interface {v3}, Lorg/xmlpull/v1/XmlPullParser;->next()I

    move-result v0

    goto :goto_0

    .line 248
    :pswitch_1
    new-instance v6, Ljava/util/ArrayList;

    .end local v6           #stationDeatail:Ljava/util/List;,"Ljava/util/List<Lcom/teewoo/app/bus/model/Station;>;"
    invoke-direct {v6}, Ljava/util/ArrayList;-><init>()V

    .line 249
    .restart local v6       #stationDeatail:Ljava/util/List;,"Ljava/util/List<Lcom/teewoo/app/bus/model/Station;>;"
    new-instance v7, Ljava/util/ArrayList;

    .end local v7           #statusList:Ljava/util/List;,"Ljava/util/List<Lcom/teewoo/app/bus/model/LineStatus;>;"
    invoke-direct {v7}, Ljava/util/ArrayList;-><init>()V

    .line 250
    .restart local v7       #statusList:Ljava/util/List;,"Ljava/util/List<Lcom/teewoo/app/bus/model/LineStatus;>;"
    goto :goto_1

    .line 252
    :pswitch_2
    const-string v10, "line"

    invoke-interface {v3}, Lorg/xmlpull/v1/XmlPullParser;->getName()Ljava/lang/String;

    move-result-object v11

    invoke-virtual {v10, v11}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v10

    if-eqz v10, :cond_2

    .line 253
    new-instance v2, Lcom/teewoo/app/bus/model/Line;

    .end local v2           #line:Lcom/teewoo/app/bus/model/Line;
    invoke-direct {v2}, Lcom/teewoo/app/bus/model/Line;-><init>()V

    .restart local v2       #line:Lcom/teewoo/app/bus/model/Line;
    goto :goto_1

    .line 254
    :cond_2
    if-eqz v2, :cond_1

    .line 255
    const-string v10, "id"

    invoke-interface {v3}, Lorg/xmlpull/v1/XmlPullParser;->getName()Ljava/lang/String;

    move-result-object v11

    invoke-virtual {v10, v11}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v10

    if-eqz v10, :cond_7

    .line 256
    if-nez v1, :cond_3

    .line 257
    invoke-interface {v3}, Lorg/xmlpull/v1/XmlPullParser;->nextText()Ljava/lang/String;

    move-result-object v10

    invoke-static {v10}, Ljava/lang/Integer;->valueOf(Ljava/lang/String;)Ljava/lang/Integer;

    move-result-object v10

    invoke-virtual {v2, v10}, Lcom/teewoo/app/bus/model/Line;->setId(Ljava/lang/Integer;)V

    goto :goto_1

    .line 259
    :cond_3
    if-nez v9, :cond_4

    .line 261
    invoke-interface {v3}, Lorg/xmlpull/v1/XmlPullParser;->nextText()Ljava/lang/String;

    move-result-object v10

    .line 260
    invoke-static {v10}, Ljava/lang/Integer;->valueOf(Ljava/lang/String;)Ljava/lang/Integer;

    move-result-object v10

    invoke-virtual {v1, v10}, Lcom/teewoo/app/bus/model/Station;->setId(Ljava/lang/Integer;)V

    goto :goto_1

    .line 263
    :cond_4
    if-nez v4, :cond_5

    .line 265
    invoke-interface {v3}, Lorg/xmlpull/v1/XmlPullParser;->nextText()Ljava/lang/String;

    move-result-object v10

    .line 264
    invoke-static {v10}, Ljava/lang/Integer;->valueOf(Ljava/lang/String;)Ljava/lang/Integer;

    move-result-object v10

    invoke-virtual {v9, v10}, Lcom/teewoo/app/bus/model/Station;->setId(Ljava/lang/Integer;)V

    goto :goto_1

    .line 267
    :cond_5
    if-nez v5, :cond_6

    .line 269
    invoke-interface {v3}, Lorg/xmlpull/v1/XmlPullParser;->nextText()Ljava/lang/String;

    move-result-object v10

    invoke-static {v10}, Ljava/lang/Integer;->valueOf(Ljava/lang/String;)Ljava/lang/Integer;

    move-result-object v10

    .line 268
    invoke-virtual {v4, v10}, Lcom/teewoo/app/bus/model/Station;->setId(Ljava/lang/Integer;)V

    goto :goto_1

    .line 272
    :cond_6
    invoke-interface {v3}, Lorg/xmlpull/v1/XmlPullParser;->nextText()Ljava/lang/String;

    move-result-object v10

    .line 271
    invoke-static {v10}, Ljava/lang/Integer;->valueOf(Ljava/lang/String;)Ljava/lang/Integer;

    move-result-object v10

    invoke-virtual {v5, v10}, Lcom/teewoo/app/bus/model/Station;->setId(Ljava/lang/Integer;)V

    goto :goto_1

    .line 277
    :cond_7
    const-string v10, "category"

    invoke-interface {v3}, Lorg/xmlpull/v1/XmlPullParser;->getName()Ljava/lang/String;

    move-result-object v11

    invoke-virtual {v10, v11}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v10

    if-eqz v10, :cond_c

    .line 278
    if-nez v1, :cond_8

    .line 279
    invoke-interface {v3}, Lorg/xmlpull/v1/XmlPullParser;->nextText()Ljava/lang/String;

    move-result-object v10

    invoke-virtual {v2, v10}, Lcom/teewoo/app/bus/model/Line;->setCategory(Ljava/lang/String;)V

    goto/16 :goto_1

    .line 281
    :cond_8
    if-nez v9, :cond_9

    .line 282
    invoke-interface {v3}, Lorg/xmlpull/v1/XmlPullParser;->nextText()Ljava/lang/String;

    move-result-object v10

    invoke-virtual {v1, v10}, Lcom/teewoo/app/bus/model/Station;->setCategory(Ljava/lang/String;)V

    goto/16 :goto_1

    .line 284
    :cond_9
    if-nez v4, :cond_a

    .line 285
    invoke-interface {v3}, Lorg/xmlpull/v1/XmlPullParser;->nextText()Ljava/lang/String;

    move-result-object v10

    invoke-virtual {v9, v10}, Lcom/teewoo/app/bus/model/Station;->setCategory(Ljava/lang/String;)V

    goto/16 :goto_1

    .line 287
    :cond_a
    if-nez v5, :cond_b

    .line 289
    invoke-interface {v3}, Lorg/xmlpull/v1/XmlPullParser;->nextText()Ljava/lang/String;

    move-result-object v10

    .line 288
    invoke-virtual {v4, v10}, Lcom/teewoo/app/bus/model/Station;->setCategory(Ljava/lang/String;)V

    goto/16 :goto_1

    .line 291
    :cond_b
    invoke-interface {v3}, Lorg/xmlpull/v1/XmlPullParser;->nextText()Ljava/lang/String;

    move-result-object v10

    invoke-virtual {v5, v10}, Lcom/teewoo/app/bus/model/Station;->setCategory(Ljava/lang/String;)V

    goto/16 :goto_1

    .line 295
    :cond_c
    const-string v10, "name"

    invoke-interface {v3}, Lorg/xmlpull/v1/XmlPullParser;->getName()Ljava/lang/String;

    move-result-object v11

    invoke-virtual {v10, v11}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v10

    if-eqz v10, :cond_11

    .line 296
    if-nez v1, :cond_d

    .line 297
    invoke-interface {v3}, Lorg/xmlpull/v1/XmlPullParser;->nextText()Ljava/lang/String;

    move-result-object v10

    invoke-virtual {v2, v10}, Lcom/teewoo/app/bus/model/Line;->setName(Ljava/lang/String;)V

    goto/16 :goto_1

    .line 299
    :cond_d
    if-nez v9, :cond_e

    .line 300
    invoke-interface {v3}, Lorg/xmlpull/v1/XmlPullParser;->nextText()Ljava/lang/String;

    move-result-object v10

    invoke-virtual {v1, v10}, Lcom/teewoo/app/bus/model/Station;->setName(Ljava/lang/String;)V

    goto/16 :goto_1

    .line 302
    :cond_e
    if-nez v4, :cond_f

    .line 303
    invoke-interface {v3}, Lorg/xmlpull/v1/XmlPullParser;->nextText()Ljava/lang/String;

    move-result-object v10

    invoke-virtual {v9, v10}, Lcom/teewoo/app/bus/model/Station;->setName(Ljava/lang/String;)V

    goto/16 :goto_1

    .line 305
    :cond_f
    if-nez v5, :cond_10

    .line 306
    invoke-interface {v3}, Lorg/xmlpull/v1/XmlPullParser;->nextText()Ljava/lang/String;

    move-result-object v10

    invoke-virtual {v4, v10}, Lcom/teewoo/app/bus/model/Station;->setName(Ljava/lang/String;)V

    goto/16 :goto_1

    .line 308
    :cond_10
    invoke-interface {v3}, Lorg/xmlpull/v1/XmlPullParser;->nextText()Ljava/lang/String;

    move-result-object v10

    invoke-virtual {v5, v10}, Lcom/teewoo/app/bus/model/Station;->setName(Ljava/lang/String;)V

    goto/16 :goto_1

    .line 312
    :cond_11
    const-string v10, "lat"

    invoke-interface {v3}, Lorg/xmlpull/v1/XmlPullParser;->getName()Ljava/lang/String;

    move-result-object v11

    invoke-virtual {v10, v11}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v10

    if-eqz v10, :cond_13

    .line 313
    if-nez v9, :cond_12

    .line 314
    invoke-interface {v3}, Lorg/xmlpull/v1/XmlPullParser;->nextText()Ljava/lang/String;

    move-result-object v10

    invoke-static {v10}, Ljava/lang/Double;->valueOf(Ljava/lang/String;)Ljava/lang/Double;

    move-result-object v10

    invoke-virtual {v10}, Ljava/lang/Double;->doubleValue()D

    move-result-wide v10

    invoke-virtual {v1, v10, v11}, Lcom/teewoo/app/bus/model/Station;->setLat(D)V

    goto/16 :goto_1

    .line 316
    :cond_12
    invoke-interface {v3}, Lorg/xmlpull/v1/XmlPullParser;->nextText()Ljava/lang/String;

    move-result-object v10

    invoke-static {v10}, Ljava/lang/Double;->valueOf(Ljava/lang/String;)Ljava/lang/Double;

    move-result-object v10

    invoke-virtual {v10}, Ljava/lang/Double;->doubleValue()D

    move-result-wide v10

    invoke-virtual {v9, v10, v11}, Lcom/teewoo/app/bus/model/Station;->setLat(D)V

    goto/16 :goto_1

    .line 318
    :cond_13
    const-string v10, "lon"

    invoke-interface {v3}, Lorg/xmlpull/v1/XmlPullParser;->getName()Ljava/lang/String;

    move-result-object v11

    invoke-virtual {v10, v11}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v10

    if-eqz v10, :cond_15

    .line 319
    if-nez v9, :cond_14

    .line 320
    invoke-interface {v3}, Lorg/xmlpull/v1/XmlPullParser;->nextText()Ljava/lang/String;

    move-result-object v10

    invoke-static {v10}, Ljava/lang/Double;->valueOf(Ljava/lang/String;)Ljava/lang/Double;

    move-result-object v10

    invoke-virtual {v10}, Ljava/lang/Double;->doubleValue()D

    move-result-wide v10

    invoke-virtual {v1, v10, v11}, Lcom/teewoo/app/bus/model/Station;->setLon(D)V

    goto/16 :goto_1

    .line 322
    :cond_14
    invoke-interface {v3}, Lorg/xmlpull/v1/XmlPullParser;->nextText()Ljava/lang/String;

    move-result-object v10

    invoke-static {v10}, Ljava/lang/Double;->valueOf(Ljava/lang/String;)Ljava/lang/Double;

    move-result-object v10

    invoke-virtual {v10}, Ljava/lang/Double;->doubleValue()D

    move-result-wide v10

    invoke-virtual {v9, v10, v11}, Lcom/teewoo/app/bus/model/Station;->setLon(D)V

    goto/16 :goto_1

    .line 324
    :cond_15
    const-string v10, "leave_time"

    invoke-interface {v3}, Lorg/xmlpull/v1/XmlPullParser;->getName()Ljava/lang/String;

    move-result-object v11

    invoke-virtual {v10, v11}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v10

    if-eqz v10, :cond_16

    .line 325
    invoke-interface {v3}, Lorg/xmlpull/v1/XmlPullParser;->nextText()Ljava/lang/String;

    move-result-object v10

    invoke-virtual {v2, v10}, Lcom/teewoo/app/bus/model/Line;->setLeave_time(Ljava/lang/String;)V

    goto/16 :goto_1

    .line 326
    :cond_16
    const-string v10, "start_time"

    invoke-interface {v3}, Lorg/xmlpull/v1/XmlPullParser;->getName()Ljava/lang/String;

    move-result-object v11

    invoke-virtual {v10, v11}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v10

    if-eqz v10, :cond_17

    .line 327
    invoke-interface {v3}, Lorg/xmlpull/v1/XmlPullParser;->nextText()Ljava/lang/String;

    move-result-object v10

    invoke-virtual {v2, v10}, Lcom/teewoo/app/bus/model/Line;->setStart_time(Ljava/lang/String;)V

    goto/16 :goto_1

    .line 328
    :cond_17
    const-string v10, "end_time"

    invoke-interface {v3}, Lorg/xmlpull/v1/XmlPullParser;->getName()Ljava/lang/String;

    move-result-object v11

    invoke-virtual {v10, v11}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v10

    if-eqz v10, :cond_18

    .line 329
    invoke-interface {v3}, Lorg/xmlpull/v1/XmlPullParser;->nextText()Ljava/lang/String;

    move-result-object v10

    invoke-virtual {v2, v10}, Lcom/teewoo/app/bus/model/Line;->setEnd_time(Ljava/lang/String;)V

    goto/16 :goto_1

    .line 330
    :cond_18
    const-string v10, "from_station"

    invoke-interface {v3}, Lorg/xmlpull/v1/XmlPullParser;->getName()Ljava/lang/String;

    move-result-object v11

    invoke-virtual {v10, v11}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v10

    if-eqz v10, :cond_19

    .line 331
    new-instance v1, Lcom/teewoo/app/bus/model/Station;

    .end local v1           #fromStation:Lcom/teewoo/app/bus/model/Station;
    invoke-direct {v1}, Lcom/teewoo/app/bus/model/Station;-><init>()V

    .restart local v1       #fromStation:Lcom/teewoo/app/bus/model/Station;
    goto/16 :goto_1

    .line 332
    :cond_19
    const-string v10, "to_station"

    invoke-interface {v3}, Lorg/xmlpull/v1/XmlPullParser;->getName()Ljava/lang/String;

    move-result-object v11

    invoke-virtual {v10, v11}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v10

    if-eqz v10, :cond_1a

    .line 333
    new-instance v9, Lcom/teewoo/app/bus/model/Station;

    .end local v9           #toStation:Lcom/teewoo/app/bus/model/Station;
    invoke-direct {v9}, Lcom/teewoo/app/bus/model/Station;-><init>()V

    .restart local v9       #toStation:Lcom/teewoo/app/bus/model/Station;
    goto/16 :goto_1

    .line 334
    :cond_1a
    const-string v10, "station_query"

    invoke-interface {v3}, Lorg/xmlpull/v1/XmlPullParser;->getName()Ljava/lang/String;

    move-result-object v11

    invoke-virtual {v10, v11}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v10

    if-eqz v10, :cond_1b

    .line 335
    new-instance v4, Lcom/teewoo/app/bus/model/Station;

    .end local v4           #queryStation:Lcom/teewoo/app/bus/model/Station;
    invoke-direct {v4}, Lcom/teewoo/app/bus/model/Station;-><init>()V

    .restart local v4       #queryStation:Lcom/teewoo/app/bus/model/Station;
    goto/16 :goto_1

    .line 336
    :cond_1b
    const-string v10, "station"

    invoke-interface {v3}, Lorg/xmlpull/v1/XmlPullParser;->getName()Ljava/lang/String;

    move-result-object v11

    invoke-virtual {v10, v11}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v10

    if-eqz v10, :cond_1d

    .line 337
    if-nez v8, :cond_1c

    .line 338
    new-instance v5, Lcom/teewoo/app/bus/model/Station;

    .end local v5           #sta:Lcom/teewoo/app/bus/model/Station;
    invoke-direct {v5}, Lcom/teewoo/app/bus/model/Station;-><init>()V

    .restart local v5       #sta:Lcom/teewoo/app/bus/model/Station;
    goto/16 :goto_1

    .line 340
    :cond_1c
    invoke-interface {v3}, Lorg/xmlpull/v1/XmlPullParser;->nextText()Ljava/lang/String;

    move-result-object v10

    invoke-virtual {v8, v10}, Lcom/teewoo/app/bus/model/LineStatus;->setStationName(Ljava/lang/String;)V

    goto/16 :goto_1

    .line 342
    :cond_1d
    const-string v10, "status"

    invoke-interface {v3}, Lorg/xmlpull/v1/XmlPullParser;->getName()Ljava/lang/String;

    move-result-object v11

    invoke-virtual {v10, v11}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v10

    if-eqz v10, :cond_1e

    .line 343
    new-instance v8, Lcom/teewoo/app/bus/model/LineStatus;

    .end local v8           #stus:Lcom/teewoo/app/bus/model/LineStatus;
    invoke-direct {v8}, Lcom/teewoo/app/bus/model/LineStatus;-><init>()V

    .restart local v8       #stus:Lcom/teewoo/app/bus/model/LineStatus;
    goto/16 :goto_1

    .line 344
    :cond_1e
    const-string v10, "stop"

    invoke-interface {v3}, Lorg/xmlpull/v1/XmlPullParser;->getName()Ljava/lang/String;

    move-result-object v11

    invoke-virtual {v10, v11}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v10

    if-eqz v10, :cond_1f

    .line 345
    invoke-interface {v3}, Lorg/xmlpull/v1/XmlPullParser;->nextText()Ljava/lang/String;

    move-result-object v10

    invoke-virtual {v8, v10}, Lcom/teewoo/app/bus/model/LineStatus;->setStop(Ljava/lang/String;)V

    goto/16 :goto_1

    .line 346
    :cond_1f
    const-string v10, "station_no"

    invoke-interface {v3}, Lorg/xmlpull/v1/XmlPullParser;->getName()Ljava/lang/String;

    move-result-object v11

    invoke-virtual {v10, v11}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v10

    if-eqz v10, :cond_20

    .line 347
    invoke-interface {v3}, Lorg/xmlpull/v1/XmlPullParser;->nextText()Ljava/lang/String;

    move-result-object v10

    invoke-virtual {v8, v10}, Lcom/teewoo/app/bus/model/LineStatus;->setStationNo(Ljava/lang/String;)V

    goto/16 :goto_1

    .line 348
    :cond_20
    const-string v10, "distance"

    invoke-interface {v3}, Lorg/xmlpull/v1/XmlPullParser;->getName()Ljava/lang/String;

    move-result-object v11

    invoke-virtual {v10, v11}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v10

    if-eqz v10, :cond_1

    .line 349
    invoke-interface {v3}, Lorg/xmlpull/v1/XmlPullParser;->nextText()Ljava/lang/String;

    move-result-object v10

    invoke-virtual {v8, v10}, Lcom/teewoo/app/bus/model/LineStatus;->setDistance(Ljava/lang/String;)V

    goto/16 :goto_1

    .line 355
    :pswitch_3
    const-string v10, "station"

    invoke-interface {v3}, Lorg/xmlpull/v1/XmlPullParser;->getName()Ljava/lang/String;

    move-result-object v11

    invoke-virtual {v10, v11}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v10

    if-eqz v10, :cond_21

    .line 357
    if-nez v8, :cond_1

    .line 358
    invoke-interface {v6, v5}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 359
    const/4 v5, 0x0

    goto/16 :goto_1

    .line 361
    :cond_21
    const-string v10, "status"

    invoke-interface {v3}, Lorg/xmlpull/v1/XmlPullParser;->getName()Ljava/lang/String;

    move-result-object v11

    invoke-virtual {v10, v11}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v10

    if-eqz v10, :cond_22

    .line 362
    invoke-interface {v7, v8}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 363
    const/4 v8, 0x0

    goto/16 :goto_1

    .line 364
    :cond_22
    const-string v10, "line_station"

    invoke-interface {v3}, Lorg/xmlpull/v1/XmlPullParser;->getName()Ljava/lang/String;

    move-result-object v11

    invoke-virtual {v10, v11}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v10

    if-eqz v10, :cond_1

    .line 365
    invoke-virtual {v2, v1}, Lcom/teewoo/app/bus/model/Line;->setFrom_station(Lcom/teewoo/app/bus/model/Station;)V

    .line 366
    invoke-virtual {v2, v9}, Lcom/teewoo/app/bus/model/Line;->setTo_station(Lcom/teewoo/app/bus/model/Station;)V

    .line 367
    invoke-virtual {v2, v4}, Lcom/teewoo/app/bus/model/Line;->setQueryStation(Lcom/teewoo/app/bus/model/Station;)V

    .line 368
    invoke-virtual {v2, v6}, Lcom/teewoo/app/bus/model/Line;->setListitem(Ljava/util/List;)V

    .line 369
    invoke-virtual {v2, v7}, Lcom/teewoo/app/bus/model/Line;->setLineStatus(Ljava/util/List;)V

    .line 370
    const/4 v7, 0x0

    .line 371
    const/4 v1, 0x0

    .line 372
    const/4 v9, 0x0

    .line 373
    const/4 v4, 0x0

    .line 374
    const/4 v6, 0x0

    goto/16 :goto_1

    .line 246
    :pswitch_data_0
    .packed-switch 0x0
        :pswitch_1
        :pswitch_0
        :pswitch_2
        :pswitch_3
    .end packed-switch
.end method

.method public static getLineDetails(Ljava/io/InputStream;)Lcom/teewoo/app/bus/model/Line;
    .locals 7
    .parameter "inputStream"
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/lang/Exception;
        }
    .end annotation

    .prologue
    .line 183
    const/4 v1, 0x0

    .line 184
    .local v1, line:Lcom/teewoo/app/bus/model/Line;
    const/4 v4, 0x0

    .line 185
    .local v4, stationDeatail:Ljava/util/List;,"Ljava/util/List<Lcom/teewoo/app/bus/model/Station;>;"
    const/4 v3, 0x0

    .line 187
    .local v3, sta:Lcom/teewoo/app/bus/model/Station;
    invoke-static {}, Landroid/util/Xml;->newPullParser()Lorg/xmlpull/v1/XmlPullParser;

    move-result-object v2

    .line 189
    .local v2, parser:Lorg/xmlpull/v1/XmlPullParser;
    const-string v5, "UTF-8"

    invoke-interface {v2, p0, v5}, Lorg/xmlpull/v1/XmlPullParser;->setInput(Ljava/io/InputStream;Ljava/lang/String;)V

    .line 190
    invoke-interface {v2}, Lorg/xmlpull/v1/XmlPullParser;->getEventType()I

    move-result v0

    .line 192
    .local v0, event:I
    :goto_0
    const/4 v5, 0x1

    if-ne v0, v5, :cond_0

    .line 221
    return-object v1

    .line 193
    :cond_0
    packed-switch v0, :pswitch_data_0

    .line 219
    :cond_1
    :goto_1
    :pswitch_0
    invoke-interface {v2}, Lorg/xmlpull/v1/XmlPullParser;->next()I

    move-result v0

    goto :goto_0

    .line 195
    :pswitch_1
    new-instance v1, Lcom/teewoo/app/bus/model/Line;

    .end local v1           #line:Lcom/teewoo/app/bus/model/Line;
    invoke-direct {v1}, Lcom/teewoo/app/bus/model/Line;-><init>()V

    .line 196
    .restart local v1       #line:Lcom/teewoo/app/bus/model/Line;
    new-instance v4, Ljava/util/ArrayList;

    .end local v4           #stationDeatail:Ljava/util/List;,"Ljava/util/List<Lcom/teewoo/app/bus/model/Station;>;"
    invoke-direct {v4}, Ljava/util/ArrayList;-><init>()V

    .line 197
    .restart local v4       #stationDeatail:Ljava/util/List;,"Ljava/util/List<Lcom/teewoo/app/bus/model/Station;>;"
    goto :goto_1

    .line 199
    :pswitch_2
    const-string v5, "station"

    invoke-interface {v2}, Lorg/xmlpull/v1/XmlPullParser;->getName()Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v5, v6}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v5

    if-eqz v5, :cond_2

    .line 200
    new-instance v3, Lcom/teewoo/app/bus/model/Station;

    .end local v3           #sta:Lcom/teewoo/app/bus/model/Station;
    invoke-direct {v3}, Lcom/teewoo/app/bus/model/Station;-><init>()V

    .restart local v3       #sta:Lcom/teewoo/app/bus/model/Station;
    goto :goto_1

    .line 201
    :cond_2
    if-eqz v3, :cond_1

    .line 202
    const-string v5, "id"

    invoke-interface {v2}, Lorg/xmlpull/v1/XmlPullParser;->getName()Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v5, v6}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v5

    if-eqz v5, :cond_3

    .line 203
    invoke-interface {v2}, Lorg/xmlpull/v1/XmlPullParser;->nextText()Ljava/lang/String;

    move-result-object v5

    invoke-static {v5}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I

    move-result v5

    invoke-static {v5}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v5

    invoke-virtual {v3, v5}, Lcom/teewoo/app/bus/model/Station;->setId(Ljava/lang/Integer;)V

    goto :goto_1

    .line 204
    :cond_3
    const-string v5, "category"

    invoke-interface {v2}, Lorg/xmlpull/v1/XmlPullParser;->getName()Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v5, v6}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v5

    if-eqz v5, :cond_4

    .line 205
    invoke-interface {v2}, Lorg/xmlpull/v1/XmlPullParser;->nextText()Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v3, v5}, Lcom/teewoo/app/bus/model/Station;->setCategory(Ljava/lang/String;)V

    goto :goto_1

    .line 206
    :cond_4
    const-string v5, "name"

    invoke-interface {v2}, Lorg/xmlpull/v1/XmlPullParser;->getName()Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v5, v6}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v5

    if-eqz v5, :cond_1

    .line 207
    invoke-interface {v2}, Lorg/xmlpull/v1/XmlPullParser;->nextText()Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v3, v5}, Lcom/teewoo/app/bus/model/Station;->setName(Ljava/lang/String;)V

    goto :goto_1

    .line 212
    :pswitch_3
    const-string v5, "station"

    invoke-interface {v2}, Lorg/xmlpull/v1/XmlPullParser;->getName()Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v5, v6}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v5

    if-eqz v5, :cond_5

    .line 213
    invoke-interface {v4, v3}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 214
    const/4 v3, 0x0

    goto :goto_1

    .line 215
    :cond_5
    const-string v5, "stations"

    invoke-interface {v2}, Lorg/xmlpull/v1/XmlPullParser;->getName()Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v5, v6}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v5

    if-eqz v5, :cond_1

    .line 216
    invoke-virtual {v1, v4}, Lcom/teewoo/app/bus/model/Line;->setListitem(Ljava/util/List;)V

    goto/16 :goto_1

    .line 193
    nop

    :pswitch_data_0
    .packed-switch 0x0
        :pswitch_1
        :pswitch_0
        :pswitch_2
        :pswitch_3
    .end packed-switch
.end method

.method public static getLinePassBy(Ljava/io/InputStream;Ljava/lang/String;)Ljava/util/List;
    .locals 8
    .parameter "inputStream"
    .parameter "encode"
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/io/InputStream;",
            "Ljava/lang/String;",
            ")",
            "Ljava/util/List",
            "<",
            "Lcom/teewoo/app/bus/model/Line;",
            ">;"
        }
    .end annotation

    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/lang/Exception;
        }
    .end annotation

    .prologue
    .line 394
    const/4 v2, 0x0

    .line 395
    .local v2, line:Lcom/teewoo/app/bus/model/Line;
    const/4 v3, 0x0

    .line 396
    .local v3, lines:Ljava/util/List;,"Ljava/util/List<Lcom/teewoo/app/bus/model/Line;>;"
    invoke-static {}, Landroid/util/Xml;->newPullParser()Lorg/xmlpull/v1/XmlPullParser;

    move-result-object v4

    .line 397
    .local v4, parser:Lorg/xmlpull/v1/XmlPullParser;
    invoke-interface {v4, p0, p1}, Lorg/xmlpull/v1/XmlPullParser;->setInput(Ljava/io/InputStream;Ljava/lang/String;)V

    .line 398
    invoke-interface {v4}, Lorg/xmlpull/v1/XmlPullParser;->getEventType()I

    move-result v0

    .line 400
    .local v0, event:I
    :goto_0
    const/4 v6, 0x1

    if-ne v0, v6, :cond_0

    .line 435
    return-object v3

    .line 401
    :cond_0
    packed-switch v0, :pswitch_data_0

    .line 433
    :cond_1
    :goto_1
    :pswitch_0
    invoke-interface {v4}, Lorg/xmlpull/v1/XmlPullParser;->next()I

    move-result v0

    goto :goto_0

    .line 403
    :pswitch_1
    new-instance v3, Ljava/util/ArrayList;

    .end local v3           #lines:Ljava/util/List;,"Ljava/util/List<Lcom/teewoo/app/bus/model/Line;>;"
    invoke-direct {v3}, Ljava/util/ArrayList;-><init>()V

    .line 404
    .restart local v3       #lines:Ljava/util/List;,"Ljava/util/List<Lcom/teewoo/app/bus/model/Line;>;"
    goto :goto_1

    .line 406
    :pswitch_2
    const-string v6, "line"

    invoke-interface {v4}, Lorg/xmlpull/v1/XmlPullParser;->getName()Ljava/lang/String;

    move-result-object v7

    invoke-virtual {v6, v7}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v6

    if-eqz v6, :cond_2

    .line 407
    new-instance v2, Lcom/teewoo/app/bus/model/Line;

    .end local v2           #line:Lcom/teewoo/app/bus/model/Line;
    invoke-direct {v2}, Lcom/teewoo/app/bus/model/Line;-><init>()V

    .restart local v2       #line:Lcom/teewoo/app/bus/model/Line;
    goto :goto_1

    .line 408
    :cond_2
    if-eqz v2, :cond_1

    .line 409
    const-string v6, "id"

    invoke-interface {v4}, Lorg/xmlpull/v1/XmlPullParser;->getName()Ljava/lang/String;

    move-result-object v7

    invoke-virtual {v6, v7}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v6

    if-eqz v6, :cond_3

    .line 410
    invoke-interface {v4}, Lorg/xmlpull/v1/XmlPullParser;->nextText()Ljava/lang/String;

    move-result-object v6

    invoke-static {v6}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I

    move-result v6

    invoke-static {v6}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v6

    invoke-virtual {v2, v6}, Lcom/teewoo/app/bus/model/Line;->setId(Ljava/lang/Integer;)V

    goto :goto_1

    .line 411
    :cond_3
    const-string v6, "name"

    invoke-interface {v4}, Lorg/xmlpull/v1/XmlPullParser;->getName()Ljava/lang/String;

    move-result-object v7

    invoke-virtual {v6, v7}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v6

    if-eqz v6, :cond_4

    .line 412
    invoke-interface {v4}, Lorg/xmlpull/v1/XmlPullParser;->nextText()Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v2, v6}, Lcom/teewoo/app/bus/model/Line;->setName(Ljava/lang/String;)V

    goto :goto_1

    .line 413
    :cond_4
    const-string v6, "category"

    invoke-interface {v4}, Lorg/xmlpull/v1/XmlPullParser;->getName()Ljava/lang/String;

    move-result-object v7

    invoke-virtual {v6, v7}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v6

    if-eqz v6, :cond_5

    .line 414
    invoke-interface {v4}, Lorg/xmlpull/v1/XmlPullParser;->nextText()Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v2, v6}, Lcom/teewoo/app/bus/model/Line;->setCategory(Ljava/lang/String;)V

    goto :goto_1

    .line 415
    :cond_5
    const-string v6, "from"

    invoke-interface {v4}, Lorg/xmlpull/v1/XmlPullParser;->getName()Ljava/lang/String;

    move-result-object v7

    invoke-virtual {v6, v7}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v6

    if-eqz v6, :cond_6

    .line 416
    new-instance v1, Lcom/teewoo/app/bus/model/Station;

    invoke-direct {v1}, Lcom/teewoo/app/bus/model/Station;-><init>()V

    .line 417
    .local v1, from:Lcom/teewoo/app/bus/model/Station;
    invoke-interface {v4}, Lorg/xmlpull/v1/XmlPullParser;->nextText()Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v1, v6}, Lcom/teewoo/app/bus/model/Station;->setName(Ljava/lang/String;)V

    .line 418
    invoke-virtual {v2, v1}, Lcom/teewoo/app/bus/model/Line;->setFrom_station(Lcom/teewoo/app/bus/model/Station;)V

    goto :goto_1

    .line 419
    .end local v1           #from:Lcom/teewoo/app/bus/model/Station;
    :cond_6
    const-string v6, "to"

    invoke-interface {v4}, Lorg/xmlpull/v1/XmlPullParser;->getName()Ljava/lang/String;

    move-result-object v7

    invoke-virtual {v6, v7}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v6

    if-eqz v6, :cond_1

    .line 420
    new-instance v5, Lcom/teewoo/app/bus/model/Station;

    invoke-direct {v5}, Lcom/teewoo/app/bus/model/Station;-><init>()V

    .line 421
    .local v5, to:Lcom/teewoo/app/bus/model/Station;
    invoke-interface {v4}, Lorg/xmlpull/v1/XmlPullParser;->nextText()Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v5, v6}, Lcom/teewoo/app/bus/model/Station;->setName(Ljava/lang/String;)V

    .line 422
    invoke-virtual {v2, v5}, Lcom/teewoo/app/bus/model/Line;->setTo_station(Lcom/teewoo/app/bus/model/Station;)V

    goto/16 :goto_1

    .line 427
    .end local v5           #to:Lcom/teewoo/app/bus/model/Station;
    :pswitch_3
    const-string v6, "line"

    invoke-interface {v4}, Lorg/xmlpull/v1/XmlPullParser;->getName()Ljava/lang/String;

    move-result-object v7

    invoke-virtual {v6, v7}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v6

    if-eqz v6, :cond_1

    .line 428
    invoke-interface {v3, v2}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 429
    const/4 v2, 0x0

    goto/16 :goto_1

    .line 401
    :pswitch_data_0
    .packed-switch 0x0
        :pswitch_1
        :pswitch_0
        :pswitch_2
        :pswitch_3
    .end packed-switch
.end method

.method public static getLines(Ljava/io/InputStream;)Ljava/util/List;
    .locals 8
    .parameter "inputStream"
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/io/InputStream;",
            ")",
            "Ljava/util/List",
            "<",
            "Lcom/teewoo/app/bus/model/Line;",
            ">;"
        }
    .end annotation

    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/lang/Exception;
        }
    .end annotation

    .prologue
    .line 88
    const/4 v3, 0x0

    .line 89
    .local v3, lineList:Ljava/util/List;,"Ljava/util/List<Lcom/teewoo/app/bus/model/Line;>;"
    const/4 v2, 0x0

    .line 90
    .local v2, line:Lcom/teewoo/app/bus/model/Line;
    const/4 v1, 0x0

    .line 91
    .local v1, fromStation:Lcom/teewoo/app/bus/model/Station;
    const/4 v5, 0x0

    .line 93
    .local v5, toStation:Lcom/teewoo/app/bus/model/Station;
    invoke-static {}, Landroid/util/Xml;->newPullParser()Lorg/xmlpull/v1/XmlPullParser;

    move-result-object v4

    .line 95
    .local v4, parser:Lorg/xmlpull/v1/XmlPullParser;
    const-string v6, "UTF-8"

    invoke-interface {v4, p0, v6}, Lorg/xmlpull/v1/XmlPullParser;->setInput(Ljava/io/InputStream;Ljava/lang/String;)V

    .line 96
    invoke-interface {v4}, Lorg/xmlpull/v1/XmlPullParser;->getEventType()I

    move-result v0

    .line 98
    .local v0, event:I
    :goto_0
    const/4 v6, 0x1

    if-ne v0, v6, :cond_0

    .line 172
    return-object v3

    .line 99
    :cond_0
    packed-switch v0, :pswitch_data_0

    .line 170
    :cond_1
    :goto_1
    :pswitch_0
    invoke-interface {v4}, Lorg/xmlpull/v1/XmlPullParser;->next()I

    move-result v0

    goto :goto_0

    .line 102
    :pswitch_1
    new-instance v3, Ljava/util/ArrayList;

    .end local v3           #lineList:Ljava/util/List;,"Ljava/util/List<Lcom/teewoo/app/bus/model/Line;>;"
    invoke-direct {v3}, Ljava/util/ArrayList;-><init>()V

    .line 103
    .restart local v3       #lineList:Ljava/util/List;,"Ljava/util/List<Lcom/teewoo/app/bus/model/Line;>;"
    goto :goto_1

    .line 105
    :pswitch_2
    const-string v6, "line"

    invoke-interface {v4}, Lorg/xmlpull/v1/XmlPullParser;->getName()Ljava/lang/String;

    move-result-object v7

    invoke-virtual {v6, v7}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v6

    if-eqz v6, :cond_2

    .line 106
    new-instance v2, Lcom/teewoo/app/bus/model/Line;

    .end local v2           #line:Lcom/teewoo/app/bus/model/Line;
    invoke-direct {v2}, Lcom/teewoo/app/bus/model/Line;-><init>()V

    .restart local v2       #line:Lcom/teewoo/app/bus/model/Line;
    goto :goto_1

    .line 107
    :cond_2
    if-eqz v2, :cond_1

    .line 108
    const-string v6, "id"

    invoke-interface {v4}, Lorg/xmlpull/v1/XmlPullParser;->getName()Ljava/lang/String;

    move-result-object v7

    invoke-virtual {v6, v7}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v6

    if-eqz v6, :cond_5

    .line 109
    if-nez v1, :cond_3

    .line 110
    invoke-interface {v4}, Lorg/xmlpull/v1/XmlPullParser;->nextText()Ljava/lang/String;

    move-result-object v6

    invoke-static {v6}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I

    move-result v6

    invoke-static {v6}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v6

    invoke-virtual {v2, v6}, Lcom/teewoo/app/bus/model/Line;->setId(Ljava/lang/Integer;)V

    goto :goto_1

    .line 112
    :cond_3
    if-nez v5, :cond_4

    .line 114
    invoke-interface {v4}, Lorg/xmlpull/v1/XmlPullParser;->nextText()Ljava/lang/String;

    move-result-object v6

    .line 113
    invoke-static {v6}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I

    move-result v6

    invoke-static {v6}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v6

    invoke-virtual {v1, v6}, Lcom/teewoo/app/bus/model/Station;->setId(Ljava/lang/Integer;)V

    goto :goto_1

    .line 117
    :cond_4
    invoke-interface {v4}, Lorg/xmlpull/v1/XmlPullParser;->nextText()Ljava/lang/String;

    move-result-object v6

    .line 116
    invoke-static {v6}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I

    move-result v6

    invoke-static {v6}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v6

    invoke-virtual {v5, v6}, Lcom/teewoo/app/bus/model/Station;->setId(Ljava/lang/Integer;)V

    goto :goto_1

    .line 119
    :cond_5
    const-string v6, "category"

    .line 120
    invoke-interface {v4}, Lorg/xmlpull/v1/XmlPullParser;->getName()Ljava/lang/String;

    move-result-object v7

    .line 119
    invoke-virtual {v6, v7}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v6

    if-eqz v6, :cond_8

    .line 122
    if-nez v1, :cond_6

    .line 123
    invoke-interface {v4}, Lorg/xmlpull/v1/XmlPullParser;->nextText()Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v2, v6}, Lcom/teewoo/app/bus/model/Line;->setCategory(Ljava/lang/String;)V

    goto :goto_1

    .line 125
    :cond_6
    if-nez v5, :cond_7

    .line 126
    invoke-interface {v4}, Lorg/xmlpull/v1/XmlPullParser;->nextText()Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v1, v6}, Lcom/teewoo/app/bus/model/Station;->setCategory(Ljava/lang/String;)V

    goto :goto_1

    .line 128
    :cond_7
    invoke-interface {v4}, Lorg/xmlpull/v1/XmlPullParser;->nextText()Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v5, v6}, Lcom/teewoo/app/bus/model/Station;->setCategory(Ljava/lang/String;)V

    goto/16 :goto_1

    .line 130
    :cond_8
    const-string v6, "name"

    .line 131
    invoke-interface {v4}, Lorg/xmlpull/v1/XmlPullParser;->getName()Ljava/lang/String;

    move-result-object v7

    .line 130
    invoke-virtual {v6, v7}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v6

    if-eqz v6, :cond_b

    .line 133
    if-nez v1, :cond_9

    .line 134
    invoke-interface {v4}, Lorg/xmlpull/v1/XmlPullParser;->nextText()Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v2, v6}, Lcom/teewoo/app/bus/model/Line;->setName(Ljava/lang/String;)V

    goto/16 :goto_1

    .line 136
    :cond_9
    if-nez v5, :cond_a

    .line 137
    invoke-interface {v4}, Lorg/xmlpull/v1/XmlPullParser;->nextText()Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v1, v6}, Lcom/teewoo/app/bus/model/Station;->setName(Ljava/lang/String;)V

    goto/16 :goto_1

    .line 139
    :cond_a
    invoke-interface {v4}, Lorg/xmlpull/v1/XmlPullParser;->nextText()Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v5, v6}, Lcom/teewoo/app/bus/model/Station;->setName(Ljava/lang/String;)V

    goto/16 :goto_1

    .line 141
    :cond_b
    const-string v6, "from_station"

    .line 142
    invoke-interface {v4}, Lorg/xmlpull/v1/XmlPullParser;->getName()Ljava/lang/String;

    move-result-object v7

    .line 141
    invoke-virtual {v6, v7}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v6

    if-eqz v6, :cond_c

    .line 143
    new-instance v1, Lcom/teewoo/app/bus/model/Station;

    .end local v1           #fromStation:Lcom/teewoo/app/bus/model/Station;
    invoke-direct {v1}, Lcom/teewoo/app/bus/model/Station;-><init>()V

    .restart local v1       #fromStation:Lcom/teewoo/app/bus/model/Station;
    goto/16 :goto_1

    .line 144
    :cond_c
    const-string v6, "to_station"

    .line 145
    invoke-interface {v4}, Lorg/xmlpull/v1/XmlPullParser;->getName()Ljava/lang/String;

    move-result-object v7

    .line 144
    invoke-virtual {v6, v7}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v6

    if-eqz v6, :cond_d

    .line 146
    new-instance v5, Lcom/teewoo/app/bus/model/Station;

    .end local v5           #toStation:Lcom/teewoo/app/bus/model/Station;
    invoke-direct {v5}, Lcom/teewoo/app/bus/model/Station;-><init>()V

    .restart local v5       #toStation:Lcom/teewoo/app/bus/model/Station;
    goto/16 :goto_1

    .line 147
    :cond_d
    const-string v6, "leave_time"

    .line 148
    invoke-interface {v4}, Lorg/xmlpull/v1/XmlPullParser;->getName()Ljava/lang/String;

    move-result-object v7

    .line 147
    invoke-virtual {v6, v7}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v6

    if-eqz v6, :cond_e

    .line 149
    invoke-interface {v4}, Lorg/xmlpull/v1/XmlPullParser;->nextText()Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v2, v6}, Lcom/teewoo/app/bus/model/Line;->setLeave_time(Ljava/lang/String;)V

    goto/16 :goto_1

    .line 150
    :cond_e
    const-string v6, "start_time"

    .line 151
    invoke-interface {v4}, Lorg/xmlpull/v1/XmlPullParser;->getName()Ljava/lang/String;

    move-result-object v7

    .line 150
    invoke-virtual {v6, v7}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v6

    if-eqz v6, :cond_f

    .line 152
    invoke-interface {v4}, Lorg/xmlpull/v1/XmlPullParser;->nextText()Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v2, v6}, Lcom/teewoo/app/bus/model/Line;->setStart_time(Ljava/lang/String;)V

    goto/16 :goto_1

    .line 153
    :cond_f
    const-string v6, "end_time"

    .line 154
    invoke-interface {v4}, Lorg/xmlpull/v1/XmlPullParser;->getName()Ljava/lang/String;

    move-result-object v7

    .line 153
    invoke-virtual {v6, v7}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v6

    if-eqz v6, :cond_1

    .line 155
    invoke-interface {v4}, Lorg/xmlpull/v1/XmlPullParser;->nextText()Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v2, v6}, Lcom/teewoo/app/bus/model/Line;->setEnd_time(Ljava/lang/String;)V

    goto/16 :goto_1

    .line 160
    :pswitch_3
    const-string v6, "line"

    invoke-interface {v4}, Lorg/xmlpull/v1/XmlPullParser;->getName()Ljava/lang/String;

    move-result-object v7

    invoke-virtual {v6, v7}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v6

    if-eqz v6, :cond_1

    .line 161
    invoke-virtual {v2, v1}, Lcom/teewoo/app/bus/model/Line;->setFrom_station(Lcom/teewoo/app/bus/model/Station;)V

    .line 162
    invoke-virtual {v2, v5}, Lcom/teewoo/app/bus/model/Line;->setTo_station(Lcom/teewoo/app/bus/model/Station;)V

    .line 163
    invoke-interface {v3, v2}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 164
    const/4 v1, 0x0

    .line 165
    const/4 v5, 0x0

    .line 166
    const/4 v2, 0x0

    goto/16 :goto_1

    .line 99
    :pswitch_data_0
    .packed-switch 0x0
        :pswitch_1
        :pswitch_0
        :pswitch_2
        :pswitch_3
    .end packed-switch
.end method

.method public static getStations(Ljava/io/InputStream;)Lcom/teewoo/app/bus/model/NearByBo;
    .locals 7
    .parameter "inputStream"
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/lang/Exception;
        }
    .end annotation

    .prologue
    .line 29
    const/4 v1, 0x0

    .line 30
    .local v1, near:Lcom/teewoo/app/bus/model/NearByBo;
    const/4 v4, 0x0

    .line 31
    .local v4, stationList:Ljava/util/List;,"Ljava/util/List<Lcom/teewoo/app/bus/model/Station;>;"
    const/4 v3, 0x0

    .line 33
    .local v3, station:Lcom/teewoo/app/bus/model/Station;
    invoke-static {}, Landroid/util/Xml;->newPullParser()Lorg/xmlpull/v1/XmlPullParser;

    move-result-object v2

    .line 35
    .local v2, parser:Lorg/xmlpull/v1/XmlPullParser;
    const-string v5, "UTF-8"

    invoke-interface {v2, p0, v5}, Lorg/xmlpull/v1/XmlPullParser;->setInput(Ljava/io/InputStream;Ljava/lang/String;)V

    .line 36
    invoke-interface {v2}, Lorg/xmlpull/v1/XmlPullParser;->getEventType()I

    move-result v0

    .line 37
    .local v0, event:I
    :goto_0
    const/4 v5, 0x1

    if-ne v0, v5, :cond_0

    .line 77
    return-object v1

    .line 38
    :cond_0
    packed-switch v0, :pswitch_data_0

    .line 75
    :cond_1
    :goto_1
    :pswitch_0
    invoke-interface {v2}, Lorg/xmlpull/v1/XmlPullParser;->next()I

    move-result v0

    goto :goto_0

    .line 40
    :pswitch_1
    new-instance v1, Lcom/teewoo/app/bus/model/NearByBo;

    .end local v1           #near:Lcom/teewoo/app/bus/model/NearByBo;
    invoke-direct {v1}, Lcom/teewoo/app/bus/model/NearByBo;-><init>()V

    .line 41
    .restart local v1       #near:Lcom/teewoo/app/bus/model/NearByBo;
    new-instance v4, Ljava/util/ArrayList;

    .end local v4           #stationList:Ljava/util/List;,"Ljava/util/List<Lcom/teewoo/app/bus/model/Station;>;"
    invoke-direct {v4}, Ljava/util/ArrayList;-><init>()V

    .line 42
    .restart local v4       #stationList:Ljava/util/List;,"Ljava/util/List<Lcom/teewoo/app/bus/model/Station;>;"
    goto :goto_1

    .line 44
    :pswitch_2
    const-string v5, "id"

    invoke-interface {v2}, Lorg/xmlpull/v1/XmlPullParser;->getName()Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v5, v6}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v5

    if-eqz v5, :cond_2

    .line 45
    new-instance v3, Lcom/teewoo/app/bus/model/Station;

    .end local v3           #station:Lcom/teewoo/app/bus/model/Station;
    invoke-direct {v3}, Lcom/teewoo/app/bus/model/Station;-><init>()V

    .line 46
    .restart local v3       #station:Lcom/teewoo/app/bus/model/Station;
    invoke-interface {v2}, Lorg/xmlpull/v1/XmlPullParser;->nextText()Ljava/lang/String;

    move-result-object v5

    invoke-static {v5}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I

    move-result v5

    invoke-static {v5}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v5

    invoke-virtual {v3, v5}, Lcom/teewoo/app/bus/model/Station;->setId(Ljava/lang/Integer;)V

    goto :goto_1

    .line 47
    :cond_2
    const-string v5, "total_count"

    invoke-interface {v2}, Lorg/xmlpull/v1/XmlPullParser;->getName()Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v5, v6}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v5

    if-eqz v5, :cond_3

    .line 48
    invoke-interface {v2}, Lorg/xmlpull/v1/XmlPullParser;->nextText()Ljava/lang/String;

    move-result-object v5

    invoke-static {v5}, Ljava/lang/Integer;->valueOf(Ljava/lang/String;)Ljava/lang/Integer;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/Integer;->intValue()I

    move-result v5

    invoke-virtual {v1, v5}, Lcom/teewoo/app/bus/model/NearByBo;->setTotal(I)V

    goto :goto_1

    .line 49
    :cond_3
    if-eqz v3, :cond_1

    .line 50
    const-string v5, "category"

    .line 51
    invoke-interface {v2}, Lorg/xmlpull/v1/XmlPullParser;->getName()Ljava/lang/String;

    move-result-object v6

    .line 50
    invoke-virtual {v5, v6}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v5

    if-eqz v5, :cond_4

    .line 52
    invoke-interface {v2}, Lorg/xmlpull/v1/XmlPullParser;->nextText()Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v3, v5}, Lcom/teewoo/app/bus/model/Station;->setCategory(Ljava/lang/String;)V

    goto :goto_1

    .line 53
    :cond_4
    const-string v5, "name"

    .line 54
    invoke-interface {v2}, Lorg/xmlpull/v1/XmlPullParser;->getName()Ljava/lang/String;

    move-result-object v6

    .line 53
    invoke-virtual {v5, v6}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v5

    if-eqz v5, :cond_5

    .line 55
    invoke-interface {v2}, Lorg/xmlpull/v1/XmlPullParser;->nextText()Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v3, v5}, Lcom/teewoo/app/bus/model/Station;->setName(Ljava/lang/String;)V

    goto :goto_1

    .line 56
    :cond_5
    const-string v5, "lat"

    .line 57
    invoke-interface {v2}, Lorg/xmlpull/v1/XmlPullParser;->getName()Ljava/lang/String;

    move-result-object v6

    .line 56
    invoke-virtual {v5, v6}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v5

    if-eqz v5, :cond_6

    .line 58
    invoke-interface {v2}, Lorg/xmlpull/v1/XmlPullParser;->nextText()Ljava/lang/String;

    move-result-object v5

    invoke-static {v5}, Ljava/lang/Double;->valueOf(Ljava/lang/String;)Ljava/lang/Double;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/Double;->doubleValue()D

    move-result-wide v5

    invoke-virtual {v3, v5, v6}, Lcom/teewoo/app/bus/model/Station;->setLat(D)V

    goto/16 :goto_1

    .line 59
    :cond_6
    const-string v5, "lon"

    .line 60
    invoke-interface {v2}, Lorg/xmlpull/v1/XmlPullParser;->getName()Ljava/lang/String;

    move-result-object v6

    .line 59
    invoke-virtual {v5, v6}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v5

    if-eqz v5, :cond_1

    .line 61
    invoke-interface {v2}, Lorg/xmlpull/v1/XmlPullParser;->nextText()Ljava/lang/String;

    move-result-object v5

    invoke-static {v5}, Ljava/lang/Double;->valueOf(Ljava/lang/String;)Ljava/lang/Double;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/Double;->doubleValue()D

    move-result-wide v5

    invoke-virtual {v3, v5, v6}, Lcom/teewoo/app/bus/model/Station;->setLon(D)V

    goto/16 :goto_1

    .line 66
    :pswitch_3
    const-string v5, "station"

    invoke-interface {v2}, Lorg/xmlpull/v1/XmlPullParser;->getName()Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v5, v6}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v5

    if-eqz v5, :cond_7

    .line 67
    invoke-interface {v4, v3}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 68
    const/4 v3, 0x0

    goto/16 :goto_1

    .line 69
    :cond_7
    const-string v5, "stations"

    invoke-interface {v2}, Lorg/xmlpull/v1/XmlPullParser;->getName()Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v5, v6}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v5

    if-eqz v5, :cond_1

    .line 70
    invoke-virtual {v1, v4}, Lcom/teewoo/app/bus/model/NearByBo;->setNearStation(Ljava/util/List;)V

    .line 71
    const/4 v4, 0x0

    goto/16 :goto_1

    .line 38
    :pswitch_data_0
    .packed-switch 0x0
        :pswitch_1
        :pswitch_0
        :pswitch_2
        :pswitch_3
    .end packed-switch
.end method

.method public static getVersionInfo(Ljava/io/InputStream;Ljava/lang/String;)Lcom/teewoo/app/bus/util/VersionUtil$VersionInfo;
    .locals 10
    .parameter "inputStream"
    .parameter "encode"
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/lang/Exception;
        }
    .end annotation

    .prologue
    .line 616
    invoke-static {}, Landroid/util/Xml;->newPullParser()Lorg/xmlpull/v1/XmlPullParser;

    move-result-object v4

    .line 618
    .local v4, parser:Lorg/xmlpull/v1/XmlPullParser;
    const-string v8, "UTF-8"

    invoke-interface {v4, p0, v8}, Lorg/xmlpull/v1/XmlPullParser;->setInput(Ljava/io/InputStream;Ljava/lang/String;)V

    .line 619
    invoke-interface {v4}, Lorg/xmlpull/v1/XmlPullParser;->getEventType()I

    move-result v3

    .line 620
    .local v3, event:I
    const/4 v2, 0x0

    .local v2, description:Ljava/lang/String;
    const/4 v6, 0x0

    .local v6, url:Ljava/lang/String;
    const/4 v7, 0x0

    .local v7, ver:Ljava/lang/String;
    const/4 v5, 0x0

    .local v5, platform:Ljava/lang/String;
    const/4 v0, 0x0

    .line 622
    .local v0, action:Ljava/lang/String;
    :goto_0
    const/4 v8, 0x1

    if-ne v3, v8, :cond_0

    .line 651
    if-eqz v2, :cond_6

    if-eqz v6, :cond_6

    if-eqz v7, :cond_6

    .line 652
    new-instance v8, Lcom/teewoo/app/bus/util/VersionUtil$VersionInfo;

    invoke-direct {v8, v2, v6, v7, v0}, Lcom/teewoo/app/bus/util/VersionUtil$VersionInfo;-><init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    .line 654
    :goto_1
    return-object v8

    .line 623
    :cond_0
    invoke-interface {v4}, Lorg/xmlpull/v1/XmlPullParser;->getText()Ljava/lang/String;

    move-result-object v1

    .line 624
    .local v1, currentText:Ljava/lang/String;
    packed-switch v3, :pswitch_data_0

    .line 648
    :cond_1
    :goto_2
    :pswitch_0
    invoke-interface {v4}, Lorg/xmlpull/v1/XmlPullParser;->next()I

    move-result v3

    goto :goto_0

    .line 629
    :pswitch_1
    const-string v8, "version"

    invoke-interface {v4}, Lorg/xmlpull/v1/XmlPullParser;->getName()Ljava/lang/String;

    move-result-object v9

    invoke-virtual {v8, v9}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v8

    if-nez v8, :cond_1

    .line 631
    const-string v8, "platform"

    invoke-interface {v4}, Lorg/xmlpull/v1/XmlPullParser;->getName()Ljava/lang/String;

    move-result-object v9

    invoke-virtual {v8, v9}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v8

    if-eqz v8, :cond_2

    .line 632
    invoke-interface {v4}, Lorg/xmlpull/v1/XmlPullParser;->nextText()Ljava/lang/String;

    move-result-object v5

    goto :goto_2

    .line 633
    :cond_2
    const-string v8, "ver"

    invoke-interface {v4}, Lorg/xmlpull/v1/XmlPullParser;->getName()Ljava/lang/String;

    move-result-object v9

    invoke-virtual {v8, v9}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v8

    if-eqz v8, :cond_3

    .line 634
    invoke-interface {v4}, Lorg/xmlpull/v1/XmlPullParser;->nextText()Ljava/lang/String;

    move-result-object v7

    goto :goto_2

    .line 635
    :cond_3
    const-string v8, "message"

    invoke-interface {v4}, Lorg/xmlpull/v1/XmlPullParser;->getName()Ljava/lang/String;

    move-result-object v9

    invoke-virtual {v8, v9}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v8

    if-eqz v8, :cond_4

    .line 636
    invoke-interface {v4}, Lorg/xmlpull/v1/XmlPullParser;->nextText()Ljava/lang/String;

    move-result-object v2

    goto :goto_2

    .line 637
    :cond_4
    const-string v8, "url"

    invoke-interface {v4}, Lorg/xmlpull/v1/XmlPullParser;->getName()Ljava/lang/String;

    move-result-object v9

    invoke-virtual {v8, v9}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v8

    if-eqz v8, :cond_5

    .line 638
    invoke-interface {v4}, Lorg/xmlpull/v1/XmlPullParser;->nextText()Ljava/lang/String;

    move-result-object v6

    goto :goto_2

    .line 639
    :cond_5
    const-string v8, "action"

    invoke-interface {v4}, Lorg/xmlpull/v1/XmlPullParser;->getName()Ljava/lang/String;

    move-result-object v9

    invoke-virtual {v8, v9}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v8

    if-eqz v8, :cond_1

    .line 640
    invoke-interface {v4}, Lorg/xmlpull/v1/XmlPullParser;->nextText()Ljava/lang/String;

    move-result-object v0

    .line 643
    goto :goto_2

    .line 654
    .end local v1           #currentText:Ljava/lang/String;
    :cond_6
    const/4 v8, 0x0

    goto :goto_1

    .line 624
    :pswitch_data_0
    .packed-switch 0x0
        :pswitch_0
        :pswitch_0
        :pswitch_1
    .end packed-switch
.end method
